Use new subsignature API in class.c #23527
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Towards the end of the 5.41.x development cycle I added a bunch of
subsignature_*()
API functions, for the parser to use to create subroutine signatures in an abstracted way. This will hide the inner details of how the optree is constructed, allowing future work (such as no-snails, or named parameters) to be done much easier. During that cycle I didn't quite get around to updating all the callsites; in particular,class.c
did not yet use this new API.This series of commits updates
class.c
to use this new API when creating subroutine signatures for its own generated method subs. Once this is done, it will be easier to update the way that signatures are performed internally.I don't believe this needs a perldelta entry as it is just inner details of how
class.c
constructs subroutine CVs.